import api from "../../api";

// 获取用户信息
export const getUserInfo = params => api.get("/api/user_info", params);

// 获取绑定微信的二维码
export const getBindCode = params => api.get("/api/bind_code", params);

// 用户头像上传
export const postUserUploadAvatar = params =>
  api.post("/api/upload_avatar", params);

// 用户头像修改
export const putUserInfo = params => api.put("/api/user_info", params);

// 公司logo
export const postUploadLogo = params => api.post("/api/upload_logo", params);

// 修改公司信息
export const putCompanyInfo = params => api.put("/api/company_info", params);

// 微信解绑
export const putUnBindWX = params => api.put("/api/user_un_bind", params);

// 用户修改密码
export const putUserPSD = params => api.put("/api/update_password", params);

// 更新手机号
export const putUpdatePhone = params => api.put("/api/update_phone", params);
